public class Chapter05 {
    public static void main(String[] args) {
    //定义一个double类型的数组，长度是8，求数组中所有数的积
        double a[]={3.0,4.3,3.3,2.2,5.5,6.6,7.7,8.8};
        double s = 1;
        for (int i =0;i<a.length;i++){
            s=s*a[i];

        }
        System.out.println(s);
    }
}
